<script setup lang="ts">
const client_id = '245f4901a50b587e195dfa05ab5f986b8dfbe00b3f0ad1fb75848eafb003706a'
const redirect_uri = encodeURIComponent(`${import.meta.env.VITE_SERVE}/auth/Gitee`)
const GiteeLogin = () => {
  window.location.href = `https://gitee.com/oauth/authorize?client_id=${client_id}&redirect_uri=${redirect_uri}&response_type=code&scope=user_info`;
};
</script>

<template>
  <slot :GiteeLogin="GiteeLogin"></slot>
</template>

<style scoped lang="scss">

</style>